In my WCF service with IXmlSerializable class, I get ArrayOfXElement[] instead of ObservableCollecti
Posted
by Scott
on Stack Overflow
See other posts from Stack Overflow
or by Scott
Published on 2010-03-24T19:44:08Z
Indexed on
2010/03/24
20:03 UTC
Read the original article
Hit count: 967
I have an existing class (I didn't write) that implements IXmlSerializable. I decided to create a WCF service so my Silverlight application could access this class.
I return the class as List. In the generated proxy, instead of an ObservableCollection like I'm expecting, I get ArrayOfXElement[]. If I remove the IXmlSerializable attribute, I get an the ObservableCollection.
I don't quite understand what is happening, but I just want my SL app to receive an ObservableCollection. Is my only choice to create a DTO class and send back a list of those?
Any advice?
© Stack Overflow or respective owner